package com.zahb.qadx.model;

import android.os.Parcel;
import android.os.Parcelable;

public class TrainDetailsBean implements Parcelable {


    /**
     * id : 135
     * planId : 25
     * ruleId : 2
     * classStatus : 3
     * className : du4
     * classCategory : 5
     * classCategoryName : null
     * classSubject : null
     * classType : null
     * trainingString : 
     * principalId : null
     * principalName : null
     * pictureUrl : null
     * briefIntroduction : 
     * way : 2
     * trainingUnit : 1
     * trainingAddress : 
     * startTime : 2021-01-11 00:00:00
     * endTime : 2021-01-31 23:59:59
     * createTime : 2021-01-11 17:07:43
     * updateTime : 2021-01-18 16:41:20
     * creatorId : 50476
     * creatorName : 程志慧
     * updaterId : 50476
     * attendance : 2
     * isPass : 1
     * evaluationStatus : null
     * orgId : null
     * appKey : null
     * personNum : 9
     * classHour : 19.0
     */

    private int isCertificate;// 是否展示证书弹窗
    private int id;
    private int planId;
    private int ruleId;
    private int classStatus;
    private String className;
    private int classCategory;
    private String classCategoryName;
    private String classSubject;
    private String classType;
    private String trainingString;
    private String principalId;
    private String principalName;
    private String pictureUrl;
    private String briefIntroduction;
    private int way;
    private String trainingUnit;
    private String trainingAddress;
    private String startTime;
    private String endTime;
    private String createTime;
    private String updateTime;
    private String creatorId;
    private String creatorName;
    private String updaterId;
    private int attendance;
    private int isPass;
    private String evaluationStatus;
    private String orgId;
    private String appKey;
    private int personNum;
    private double classHour;

    public int getIsCertificate() {
        return isCertificate;
    }

    public void setIsCertificate(int isCertificate) {
        this.isCertificate = isCertificate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPlanId() {
        return planId;
    }

    public void setPlanId(int planId) {
        this.planId = planId;
    }

    public int getRuleId() {
        return ruleId;
    }

    public void setRuleId(int ruleId) {
        this.ruleId = ruleId;
    }

    public int getClassStatus() {
        return classStatus;
    }

    public void setClassStatus(int classStatus) {
        this.classStatus = classStatus;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public int getClassCategory() {
        return classCategory;
    }

    public void setClassCategory(int classCategory) {
        this.classCategory = classCategory;
    }

    public String getClassCategoryName() {
        return classCategoryName;
    }

    public void setClassCategoryName(String classCategoryName) {
        this.classCategoryName = classCategoryName;
    }

    public String getClassSubject() {
        return classSubject;
    }

    public void setClassSubject(String classSubject) {
        this.classSubject = classSubject;
    }

    public String getClassType() {
        return classType;
    }

    public void setClassType(String classType) {
        this.classType = classType;
    }

    public String getTrainingString() {
        return trainingString;
    }

    public void setTrainingString(String trainingString) {
        this.trainingString = trainingString;
    }

    public String getPrincipalId() {
        return principalId;
    }

    public void setPrincipalId(String principalId) {
        this.principalId = principalId;
    }

    public String getPrincipalName() {
        return principalName;
    }

    public void setPrincipalName(String principalName) {
        this.principalName = principalName;
    }

    public String getPictureUrl() {
        return pictureUrl;
    }

    public void setPictureUrl(String pictureUrl) {
        this.pictureUrl = pictureUrl;
    }

    public String getBriefIntroduction() {
        return briefIntroduction;
    }

    public void setBriefIntroduction(String briefIntroduction) {
        this.briefIntroduction = briefIntroduction;
    }

    public int getWay() {
        return way;
    }

    public void setWay(int way) {
        this.way = way;
    }

    public String getTrainingUnit() {
        return trainingUnit;
    }

    public void setTrainingUnit(String trainingUnit) {
        this.trainingUnit = trainingUnit;
    }

    public String getTrainingAddress() {
        return trainingAddress;
    }

    public void setTrainingAddress(String trainingAddress) {
        this.trainingAddress = trainingAddress;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public String getUpdaterId() {
        return updaterId;
    }

    public void setUpdaterId(String updaterId) {
        this.updaterId = updaterId;
    }

    public int getAttendance() {
        return attendance;
    }

    public void setAttendance(int attendance) {
        this.attendance = attendance;
    }

    public int getIsPass() {
        return isPass;
    }

    public void setIsPass(int isPass) {
        this.isPass = isPass;
    }

    public String getEvaluationStatus() {
        return evaluationStatus;
    }

    public void setEvaluationStatus(String evaluationStatus) {
        this.evaluationStatus = evaluationStatus;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public int getPersonNum() {
        return personNum;
    }

    public void setPersonNum(int personNum) {
        this.personNum = personNum;
    }

    public double getClassHour() {
        return classHour;
    }

    public String getClassHoursStr(){
        String s = classHour+"";
        if(s.endsWith(".0")){
            s = s+"0";
        }
        return s;
    }

    public void setClassHour(double classHour) {
        this.classHour = classHour;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeInt(this.planId);
        dest.writeInt(this.ruleId);
        dest.writeInt(this.classStatus);
        dest.writeString(this.className);
        dest.writeInt(this.classCategory);
        dest.writeString(this.classCategoryName);
        dest.writeString(this.classSubject);
        dest.writeString(this.classType);
        dest.writeString(this.trainingString);
        dest.writeString(this.principalId);
        dest.writeString(this.principalName);
        dest.writeString(this.pictureUrl);
        dest.writeString(this.briefIntroduction);
        dest.writeInt(this.way);
        dest.writeString(this.trainingUnit);
        dest.writeString(this.trainingAddress);
        dest.writeString(this.startTime);
        dest.writeString(this.endTime);
        dest.writeString(this.createTime);
        dest.writeString(this.updateTime);
        dest.writeString(this.creatorId);
        dest.writeString(this.creatorName);
        dest.writeString(this.updaterId);
        dest.writeInt(this.attendance);
        dest.writeInt(this.isPass);
        dest.writeString(this.evaluationStatus);
        dest.writeString(this.orgId);
        dest.writeString(this.appKey);
        dest.writeInt(this.personNum);
        dest.writeDouble(this.classHour);
    }

    public TrainDetailsBean() {
    }

    protected TrainDetailsBean(Parcel in) {
        this.id = in.readInt();
        this.planId = in.readInt();
        this.ruleId = in.readInt();
        this.classStatus = in.readInt();
        this.className = in.readString();
        this.classCategory = in.readInt();
        this.classCategoryName = in.readString();
        this.classSubject = in.readString();
        this.classType = in.readString();
        this.trainingString = in.readString();
        this.principalId = in.readString();
        this.principalName = in.readString();
        this.pictureUrl = in.readString();
        this.briefIntroduction = in.readString();
        this.way = in.readInt();
        this.trainingUnit = in.readString();
        this.trainingAddress = in.readString();
        this.startTime = in.readString();
        this.endTime = in.readString();
        this.createTime = in.readString();
        this.updateTime = in.readString();
        this.creatorId = in.readString();
        this.creatorName = in.readString();
        this.updaterId = in.readString();
        this.attendance = in.readInt();
        this.isPass = in.readInt();
        this.evaluationStatus = in.readString();
        this.orgId = in.readString();
        this.appKey = in.readString();
        this.personNum = in.readInt();
        this.classHour = in.readDouble();
    }

    public static final Creator<TrainDetailsBean> CREATOR = new Creator<TrainDetailsBean>() {
        @Override
        public TrainDetailsBean createFromParcel(Parcel source) {
            return new TrainDetailsBean(source);
        }

        @Override
        public TrainDetailsBean[] newArray(int size) {
            return new TrainDetailsBean[size];
        }
    };
}
